package com.niit.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
//用户管理员表
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private int id;
    private String name;
    private String password;
    private int role;

    public User(String name, String password, String role) {
        this.name=name;
        this.password=password;
        this.role= Integer.parseInt(role);
    }

    public User(int id, String name, String password) {
        this.id=id;
        this.name=name;
        this.password=password;
        this.role= Integer.parseInt(String.valueOf(role));
    }
}
